<?php
abstract class BaseGenController extends Controller
{
    public function GetConfig()
    {
        return GenConfig::GetInstance();
    }

    protected function GetLayout()
    {
        return new BlankLayout();
    }

    public function Index($action)
	{
        $action = String::Pascalize($action);
        $params = Set::Shift(func_get_args(), 1);
        call_user_func_array("Generate::$action", $params);
        return $this->Render();
	}
}
?>